nnumpy matrix count non negative values

47

import numpy as np

np.sum(np.array(x) >= 0, axis=0)

Comments

Submit
0 Comments